package com.xushi.dao;

import com.xushi.model.Template;
import com.xushi.model.UserTemplate;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("userTemplateDao")
public interface UserTemplateRepository extends CrudRepository<UserTemplate, Integer> {
    List<UserTemplate> findUserTemplatesByUsername(String username);

    UserTemplate findUserTemplateById(int activityId);

    List<UserTemplate> findUserTemplatesByTemplate(Template template);
}